package com.zhsm.fuxi.app

object Constant {

    object PaipiaApi {
//        const val BASE_URL = "http://192.168.31.100:8080/"
        const val BASE_URL = "http://192.168.31.143:8080/"
//const val BASE_URL = "http://47.97.169.17/fuxi/"
    }
    object COMMON{
        const val SP_NAME = "PaiPai"
        const val TAKEPIC_TAKECAR_OUT = 0//取车外观拍照
        const val TAKEPIC_TAKECAR_IN = 1//取车内饰拍照
        const val TAKEPIC_BACKCAR_OUT = 2//还车外观拍照
//        const val TAKEPIC_BACKCAR_IN = 3//还车内饰拍照
    }

    //主流程状态码
        object CarState{
        const val TAKE_REPORT_SURFACE = 0    //待取车外观报备
        const val TO_TAKE_VEHICLE = 1        //待取车
        const val TAKE_REPORT_INTERIOR = 2   //待取车内饰报备
        const val RETURN_REPORT_SURFACE = 3  //待还车外观报备
        const val TO_RETURN_VEHICLE = 4      //待还车
        const val TO_BE_PAID = 5             //待支付

//        const val NORMAL = -1                //无订单
    }

    //订单
    object ORDER {
        const val CANCELLED = 0 //已取消
        const val COMPLETED = 1 //已完成
        const val EXECUTING = 2 //进行中
    }
    //车辆
    object CAR {
        const val CAN_SELL = 1 //可售
        const val NO_SELL = 2 //不可售
    }

    //当前用车押金状态
    object MONEY {
        const val MONEY_FREEZE = 0 //冻结
        const val MONEY_USABLE = 1 //缴纳未冻结
        const val MONEY_NOHAVE = 2 //未缴纳
        const val MONEY_BACK = 3 //已退还
    }

    //使用免缴纳押金 支付宝是否冻结用车押金
    object FREEZE_MONEY {
        const val UNFREEZE = 0 //未冻结
        const val FREEZE = 1 //冻结
    }

    //支付宝是否支付成功
    object PAY_RES0ULT {
        const val PAING =  1//交易创建，等待买家付款
        const val PAING_CLOSE =  2 //未付款交易超时关闭，或支付完成后全额退款
        const val PAING_SUCESS =   3//交易支付成功
        const val PAING_END =   4//交易结束，不可退款
    }
    //用户认证状态码
    object AttState{
        const val ATTING = -1//审核中
        const val ATTNO = 0
        const val ATTSUCESS = 1
        const val ATTFAIL = 2
    }
    //七牛业务码
    object QiNiu{
        const val SYSTEM = 0//用户头像等
        const val SECRET = 1//用户认证等
        const val BUSINESS = 2//注册流程报备等
    }

    object SP_KEY{
        const val LAT = "lat"
        const val LONG = "long"
        const val STATION_NAME = "station_name"
        const val STATION_ADDRESS = "station_address"
        const val STATION_CAR_NUM = "station_car_num"
    }


}